<template>
	<view class="payment_success_container">
		<view class="payment_success_box">
			<view class="payment_icon_box">
				<image :src="successIcon" mode="" class="payment_icon"></image>
			</view>

			<view class="payment_status_title">
				提交成功
			</view>
			<view class="payment_status_tip">
				可以在“申请记录”查看状态
			</view>

			<view class="payment_check_btn" @click="handleCheckOrder">
				查看状态
			</view>

			<view class="payment_back_btn" @click="handleBackHome">
				返回首页
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				successIcon: 'https://file-1314054542.cos.ap-shanghai.myqcloud.com/cos_file/wechat_xcx/6683714bbdd4a_1719890251.png'
			}
		},
		methods: {
			// 查看订单
			handleCheckOrder() {
				uni.redirectTo({
					url: '/pages/agentPortion/my/paymentRecord/paymentRecord'
				})
			},

			// 返回首页
			handleBackHome() {
				uni.switchTab({
					url: '/pages/index/index'
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.payment_success_container {

		.payment_success_box {
			display: flex;
			flex-direction: column;
			align-items: center;
			padding-top: 105rpx;

			.payment_icon_box {
				width: 98rpx;
				height: 98rpx;

				.payment_icon {
					width: 100%;
					height: 100%;
				}
			}

			.payment_status_title {
				font-family: Source Han Sans CN;
				font-weight: 500;
				font-size: 42rpx;
				color: #333333;
				padding: 41rpx 0 20rpx;
			}

			.payment_status_tip {
				font-family: Source Han Sans CN;
				font-weight: 300;
				font-size: 26rpx;
				color: #B3B3B3;
			}

			.payment_check_btn {
				display: flex;
				align-items: center;
				justify-content: center;
				width: 379rpx;
				height: 90rpx;
				background: #FF4547;
				border-radius: 45rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				font-size: 32rpx;
				color: #FFFFFF;
				margin: 75rpx 0 26rpx;
			}

			.payment_back_btn {
				display: flex;
				align-items: center;
				justify-content: center;
				width: 379rpx;
				height: 90rpx;
				background: #FFFFFF;
				border-radius: 45rpx;
				border: 2rpx solid #E6E6E6;
				font-family: Source Han Sans CN;
				font-weight: 400;
				font-size: 32rpx;
				color: #333333;
			}
		}
	}
</style>